<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/"; %>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <base href="<%=basePath%>"><title>My JSP 'plan_tree.jsp' starting page</title>
        <link href="css/jquery.treeview.css" rel="stylesheet" type="text/css" />
        <link href="lzm/css/base.css" rel="stylesheet" type="text/css" />
        <script src="js/jquery-1.4.2.min.js" type="text/javascript">
        </script>
        <script src="js/jquery.treeview.js" type="text/javascript">
        </script>
        <!--
        <script src="lzm/js/plan_tree2.js" type="text/javascript"></script>
        <script src="lzm/js/ajaxUtils.js" type="text/javascript"></script>
        -->
        <script type="text/javascript">
            $(document).ready(function(){
                $("#navigation").treeview({
                    persist: "location",
                    collapsed: false,
                    unique: true
                });
				$('.taskA').click(function () {
					//alert("taskA");
					redirectPage("/ag/task/task_detail.jsp");
				});
				$('.taskA2').click(function () {
					//alert("taskA");
					redirectPage("/ag/task/task_detail2.jsp");
				});
				$('.taskA3').click(function () {
					//alert("taskA");
					redirectPage("/ag/task/task_detail3.jsp");
				});
				$('.taskA4').click(function () {
					//alert("taskA");
					redirectPage("/ag/task/task_detail4.jsp");
				});
				$('.feedTask').click(function () {
					redirectPage("/ag/task/task_feedback.jsp");
				});
				$('.feedTask2').click(function () {
					redirectPage("/ag/task/task_feedback2.jsp");
				});
				$('.feedTask3').click(function () {
					redirectPage("/ag/task/task_feedback3.jsp");
				});
				$('.taskRes').click(function () {
					alert("taskRes");
				});
            });
		/**
 * 实现页面的定向
 * @param url 传入定向的目标URL
 */
function redirectPage(url){
    $('#mainFrame', window.parent.document).attr("src", url);
}
        </script>
        <style type="text/css">
            .pcol {
                cursor: pointer;
                color: #960;
            } .pcoc {
                display: none;
            } .pcol:hover {
                font-size: 18px;
                color: red;
                text-decoration: underline;
            }            
            body {
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
                padding: 0px;
            } #loading {
                width: 100%;
                height: 50px;
                position: absolute;
                top: 50%;
                left: 0;
                margin: -25px 0 0 0;
                text-align: center;
            }
			#navigation a{
				text-decoration:none;
				color:#069;
			}
			#navigation a:hover{
				color:#C60;
			}
        </style>
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">

    </head>
    <body>
        <div id="planCache" style="display: none">
        </div>
        <div id="loading">
        <img src="lzm/images/loading.gif" />
        <div style="margin-top: 15px">正在加载……</div>
        </div>
        <div id="loadDIV">
            <ul id="navigation">
                <li>
                    <a href="javascript:;">所有任务</a>
                    <ul>
                        <li>
                            <a href="javascript:;" class="taskA">药害区域布控</a>
                            <ul>
                                <li>
                                    <a href="javascript:;" class="feedTask">2010-6-25 15:30:00程少东</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask2">2010-6-25 17:00:00扬丰</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask3">2010-6-25 17:00:00额哈图</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="javascript:;" class="taskA2">问题药品封存</a>
                            <ul>
                                <li>
                                    <a href="javascript:;" class="feedTask">2010-6-25 15:30:00刘兆铭</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask2">2010-6-25 17:00:00尹午岩</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="javascript:;" class="taskA3">药害隐患排查</a>
                            <ul>
                                <li>
                                    <a href="javascript:;" class="feedTask">2010-6-25 15:30:00王方</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask2">2010-6-25 17:00:00陈平和</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask3">2010-6-25 17:00:00李应浩</a>
                                </li>
                            </ul>
                        </li>
						<li>
                            <a href="javascript:;" class="taskA4">出事人员安置</a>
                            <ul>
                                <li>
                                    <a href="javascript:;" class="feedTask">2010-6-25 15:30:00欧阳琪</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask2">2010-6-25 17:00:00赖文碧</a>
                                </li>
								<li>
                                    <a href="javascript:;" class="feedTask3">2010-6-25 17:00:00王亦应</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </body>
</html>
